<%= render :partial => 'calendar' %>
<%= render :partial => 'sidebar' %>

<h1>Изменение сеанса</h1>

<div class="event">
<div class="event_body">
<% form_for(:event, :url => event_path(@event), :html => { :method => :put }) do |f| %>
<div class="infoblock">
  <p>
    <b>Название</b><br />
    <%= f.text_field :title %>
  </p>

  <p>
    <b>Режиссер</b><br />
    <%= f.text_field :director %>
  </p>
 <p>
    <b>Когда</b><br />
    <%= f.date_picker_field(:date) %> (нажмите чтобы выбрать)
  </p>

  <p><b>Во сколько</b><br />
    <%= f.text_field :time %>
  </p>

  <p>
    <b>Где</b><br />
    <%= f.text_field :place %>
  </p>

  <p>
    <b>Жанр</b><br />
    <%= f.text_field :genre %>
  </p>

  <p>
    <b>Imdb</b><br />
    <%= f.text_field :imdb_id %>
  </p>
</div>

  <p>
    <b>Подробности</b> (<a href="http://daringfireball.net/projects/markdown/syntax">markdown enabled</a>)<br />
    <%= f.text_area :body, :rows => 10, :cols => 50 %>
  </p>

  <p>
    <%= submit_tag "Изменить", :class => "lbAction", :rel => "deactivate" %>
  </p>
<% end %>
</div>
<div class="event_footer"></div>
</div>

<%= link_to 'Показать', event_path(@event), :class => "lbAction", :rel => "deactivate"  %> |
<%= link_to 'Назад', events_path, :class => "lbAction", :rel => "deactivate"  %>
